<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>

  <button onclick="setTimeout(redirect, 2000)">点击后延迟2秒跳转</button>

  <script src="./js/home.js"></script>
</body>

</html>